<%=content_for :head do%> <title>Thông tin user</title>
<%end%>
<%= render "shared/search"%>
<%= render "shared/logon"%>
<%= render "shared/giohang"%>
<%= render "shared/footer"%>
<%= render "shared/menu"%>

<%if(current_user) %>
<h1>Xin chào <%= current_user.username%></h1>
<br />
<p>
	<b>Username:</b>
	<%= current_user.username %>
</p>

<p>
	<b>Email:</b>
	<%= current_user.email %>
</p>

<p>
	<b>Firstname:</b>
	<%= current_user.firstName %>
</p>

<p>
	<b>Lastname:</b>
	<%= current_user.lastName %>
</p>

<p>
	<b>Level:</b>
	<%if (current_user.level == 1)%>
	khách
	<%else%>
	<%if (current_user.level == 2)%>
	nhân viên
	<%else%>
	Admin
	<%end%>
	<%end%>
</p>

<p>
	<b>Status:</b>
	<%= current_user.status %>
</p>

<%= link_to 'Edit', capnhatuser_path  %>
<%end%>
